﻿<%@ Application Language="C#" %>

<script runat="server">

    void Application_Start(object sender, EventArgs e) 
    {
        // Code that runs on application startup

    }
    
    void Application_End(object sender, EventArgs e) 
    {
        //  Code that runs on application shutdown

    }
        
    void Application_Error(object sender, EventArgs e) 
    { 
        // Code that runs when an unhandled error occurs

    }

    void Session_Start(object sender, EventArgs e) 
    {
        // Code that runs when a new session is started

        Session["Product_index"] = -1;
        Session["Product_btnSearchActive"]=false;
        Session["Product_FilterCategory"] = false;
        Session["Product_FilterSupplier"] = false;
        Session["Category_index"] = -1;
        Session["Category_Search"] = false;
       


        Session["index"] = -1;
        Session["btnSearchActive"]=false;

        Session["SearchCustomerActive"] = false;
        Session["FilterTitleActive"] = false;


        Session["index_Employee"] = -1;
        Session["Employee_Search"] = false;
        Session["Employee_Search1"] = false;
        Session["Employee_Search2"] = false;
        Session["Employee_Search3"] = false;

        Session["OrderD_loadproduct"] = true; 
        Session["Order_searchString"] = "";
        Session["Order_Search"] = false;
        Session["Shipper_Search"] = false;
        Session["Shipper_searchString"] = "";


    }

    void Session_End(object sender, EventArgs e) 
    {
        // Code that runs when a session ends. 
        // Note: The Session_End event is raised only when the sessionstate mode
        // is set to InProc in the Web.config file. If session mode is set to StateServer 
        // or SQLServer, the event is not raised.

    }
       
</script>
